package com.wuliu.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.wuliu.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.wuliu.common.core.domain.BaseEntity;

/**
 * 单号规则对象 bas_order_rule
 *
 * @author realue
 * @date 2023-10-27
 */
@ApiModel
public class BasOrderRule extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    @ApiModelProperty(value = "${comment}")
    private String id;

    /** 类型1.标准电子面单 2.大客户单 */
    @Excel(name = "类型1.标准电子面单 2.大客户单")
    @ApiModelProperty(value = "类型1.标准电子面单 2.大客户单")
    private Integer type;

    /** 单号前缀 */
    @Excel(name = "单号前缀")
    @ApiModelProperty(value = "单号前缀")
    private String prefix;

    /** 单号长度 */
    @Excel(name = "单号长度")
    @ApiModelProperty(value = "单号长度")
    private Integer length;

    /** 开始单号 */
    @Excel(name = "开始单号")
    @ApiModelProperty(value = "开始单号")
    private Integer beginNo;

    /** 账套号 */
    @Excel(name = "账套号")
    @ApiModelProperty(value = "账套号")
    private String sysAccount;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setType(Integer type)
    {
        this.type = type;
    }

    public Integer getType()
    {
        return type;
    }
    public void setPrefix(String prefix)
    {
        this.prefix = prefix;
    }

    public String getPrefix()
    {
        return prefix;
    }
    public void setLength(Integer length)
    {
        this.length = length;
    }

    public Integer getLength()
    {
        return length;
    }
    public void setBeginNo(Integer beginNo)
    {
        this.beginNo = beginNo;
    }

    public Integer getBeginNo()
    {
        return beginNo;
    }
    public void setSysAccount(String sysAccount)
    {
        this.sysAccount = sysAccount;
    }

    public String getSysAccount()
    {
        return sysAccount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("type", getType())
                .append("prefix", getPrefix())
                .append("length", getLength())
                .append("beginNo", getBeginNo())
                .append("remark", getRemark())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("sysAccount", getSysAccount())
                .toString();
    }
}
